// 封装所有请求操作
import axios from '../../index'
import { timeFormat } from '../../../utils/utils'
import qs from 'qs'


//跟单统计
export const datagendanAxios = (onedate, towdate) => {
        return axios({
            url: '/repairOrder/dataStatisticalByDept',
            method: 'POST',
            data: qs.stringify({
                start_time: timeFormat(onedate),
                stop_time: timeFormat(towdate)
            }),
        })
    }
    //跟单员工
export const datayuangongAxios = (onedate, towdate) => {
    return axios({
        url: '/repairOrder/dataStatisticalByEmployee',
        method: 'POST',
        data: qs.stringify({
            start_time: timeFormat(onedate),
            stop_time: timeFormat(towdate)
        }),
    })
}